-
Notifications
You must be signed in to change notification settings - Fork 37
Allowed to deactivate certificate validation #1254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
7146b85 to
a22f84d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have some questions.
| entry.getValue().stopAsync(true).get(); | ||
| } catch (final InterruptedException | ExecutionException e) { | ||
| log.error("Exception happened while shutting down adapter: ", e); | ||
| throw new RuntimeException(e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming an exception is thrown, the rest of protocol adapters are not stopped. Is this behavior expected?
| throw new RuntimeException(e); | ||
| } | ||
| }).get(connectionTimeoutSeconds, TimeUnit.SECONDS); | ||
| log.debug("OPC UA client connected successfully for adapter '{}'", adapterId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This logging statement is in the right place? If client.connect() throws a UaException, a success will still be printed?
| quietlyCloseClient(client, false, faultListener, null); | ||
| return false; | ||
| } | ||
| } catch (final UaException e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This catch will not be hit.
| * | ||
| * @return true if connection is healthy, false otherwise | ||
| */ | ||
| public boolean isHealthy() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the one I expect! Nice work.
Motivation
Resolves #37845 and #37976
Changes